<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
//         WebElement element = driver.findElement(By.id("elementId"));
// boolean isVisible = element.isDisplayed(); // 返回 true 如果元素可见

executor(getPed())

function getPed(){
    return '呵呵'
}
    </script>
</body>
</html>